<!DOCTYPE html>

<html lang='en'>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="http://unpkg.com/vue"></script>
    <script src="./navBar.js"></script>
    <link rel="stylesheet" href="./navBar.css">

</head>

<body>
    <div id="root">
      <nav-bar2 title="我的" @click-left="backFn" @searchfn="search"></nav-bar2>

    </div>
    <script>
         const vm = new Vue({
            el : '#root',
            data : {  },
            methods : {
                backFn(){
                    console.log('返回上一页')
                },
                search(data){
                    console.log('发送请求,搜索成功啦~~~',data);
                }
             }    
        });
    </script>
</body>

</html>